    def OnclickSubmit(self,event):
        message = ""
        username = self.text_user.GetValue()
        password = self.text_pwd.GetValue()
        if username == "" or password == "":
            message = '用户名或密码不能为空'
        elif username == 'mr' and password == 'mrsoft':
            message = '登录成功'
        else:
            message = '用户名和密码不匹配'
        wx.MessageBox(message)

    def OnclickCancel(self, event):
        self.text_user.SetValue('')
        self.text_pwd.SetValue('')
